﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="MyMsg.aspx.cs" Inherits="Theme_3_MyMsg" Title="PowerCreator Learning Management System" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="868" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
            <td rowspan="2" valign="top">
                <table width="195" border="0" cellspacing="0" cellpadding="0" class="tit3">
                    <tr>
                        <td style="padding-left: 0">
                            <br style="height: 8px; line-height: 8px" />
                            <table width="158" border="0" cellspacing="0" cellpadding="0" align="center">
                                <tr>
                                    <td class="button1">
                                        <a href="MyMsg.aspx">我的消息</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="EditPWD.aspx">修改密码</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="EditUser.aspx" <%--onclick="LeftClick('1')"--%> target="_self">个人资料</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="StudyCenter.aspx">我的课堂</a>
                                    </td>
                                </tr>
                               <%-- <tr>
                                    <td class="button2">
                                        <a href="MyProject.aspx" onclick="LeftClick('2')">我的班级
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td class="button2">
                                        <a href="SelectCourse.aspx" <%--onclick="LeftClick('3')"--%>>选课中心</a>
                                    </td>
                                </tr>
                                <%--<tr>
                                    <td class="button2">
                                        <a href="MyCourse.aspx" onclick="LeftClick('3')">我的课程
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td class="button2">
                                        <a href="MyStowResource.aspx" <%--onclick="LeftClick('4')"--%>>我的会议</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>我的作业</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>我的考试</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>通知公告</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>在线调查</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>学分查询</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="button2">
                                        <a href="Channel.aspx" <%--onclick="LeftClick('5')"--%>>证书打印</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top" align="right">
                <table width="660" border="0" cellspacing="0" cellpadding="0" class="tz">
                    <tr>
                        <td>
                           &nbsp;我的消息
                        </td>
                    </tr>
                </table>
                <br style="height: 8px; line-height: 8px" />
                <table width="660" border="0" cellspacing="0" cellpadding="0" class="tit2" id="Table1" runat="server">
                    <tr>
                        <th>
                            我的消息                         </th>
                    </tr>
                    <tr>
                        <td valign="top">
                        
                        <span style=" color:red; ">&nbsp;未读<asp:Label ID="lbl_NoRead" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_NoReadedNew" runat="server">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】
                       
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyNoReadedNew" />
                            
                              <span style=" color:red; ">&nbsp;已读<asp:Label ID="lbl_Read" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_ReadedNew" runat="server">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?type=2&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】
                        
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyReadedNew" />
                            
                             <span style=" color:red; ">&nbsp;已发消息<asp:Label ID="lbl_MyCreate" runat="server"></asp:Label></span>
                        <hr />
                            <asp:Repeater ID="rpt_MyCreateNew" runat="server">
            <HeaderTemplate>
            <table border="0" cellspacing="0" cellpadding="0" width="97%" align="center">
               <%-- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                    <tr>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--新闻标题-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c2", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--发布时间-->
                            </th>
                        <th> <%=GetLanageValueByKey("web_cmsdefault_gv_c3", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--查看次数-->
                            </th>
                    </tr>--%>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href='OpenMsg.aspx?type=1&MsgID=<%# Eval("UserMsg_Id")%>' target="_blank" title='<%#Eval("Title")%>'><%#Eval("Title")%>
                        &nbsp;</a>【<%#Eval("Name")%>】【<%#Eval("CreateDate")%>】
                        
                    </td>
<%--                    <td>
                        <%#Eval("NewPublishTime")%>
                        &nbsp;
                    </td>
                    <td>
                        <%#Eval("NewClickNum")%>
                        &nbsp;
                    </td>--%>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
                            <br style="height: 8px; line-height: 8px" runat="server" id="td_MyCreateNew" />
                            
                            
                            
                            
                            
                            <span style=" color:red; ">&nbsp;写消息</span>
                        <hr />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <th style="width:80px;">
                    收件人：</th>
                <td>
                    <asp:RadioButton ID="rbtn_teacher" runat="server" GroupName="usertype" Text="教师"  AutoPostBack="True"  OnCheckedChanged="rdbtn_teacher_CheckedChanged"   /><asp:RadioButton ID="rbtn_student" runat="server" GroupName="usertype" Text="学生"  AutoPostBack="True"  OnCheckedChanged="rdbtn_student_CheckedChanged"   />
                </td>
               
            </tr>
            <tr runat="server" id="tr_student" visible="false">
                
                <th>
                    &nbsp;</th>
                <td>
                   <asp:DropDownList ID="ddl_Class" runat="server" OnSelectedIndexChanged="on_ddlClass_change" AutoPostBack="true" >
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddl_Student" runat="server">
                    </asp:DropDownList>
                    
                    </td>
               
            </tr>
            <tr runat="server" id="tr_teacher" visible="false">
                <th>
                     &nbsp;</th>
                <td>
                    <asp:DropDownList ID="ddl_teacher" runat="server">
                    </asp:DropDownList></td>
               
            </tr>
            <tr>
                <th>
                    标题：</th>
                <td>
                    <asp:TextBox ID="txt_Title" runat="server" Width="360px" BorderWidth="1"></asp:TextBox>
                </td>
                
            </tr>
            <tr>
                <th valign="top">
                    内容：</th>
                <td>
                    <asp:TextBox ID="txt_Content" runat="server" Width="360px" BorderWidth="1" TextMode="MultiLine" Rows="6"></asp:TextBox></td>
               
            </tr>
            
            <tr>
                
                <td colspan="2">
                    <asp:Button ID="btnSave" runat="server" Text="发送" CssClass="inputBotton2" OnClick="btnSave_Click" />
                </td>
            </tr>
            </table>
                        </td>
        </tr>
    </table>
           
    
            </td>
     </tr>
    <tr>
        <td colspan="2" align="right">
            <br style="height: 8px; line-height: 8px" />
        </td>
    </tr>
    </table>
    
    
    
    
 
</asp:Content>
